<template>
    <div class="notfound">
       <el-button type="success" @click="goBack">返回</el-button>
       <el-image :src="img">
       </el-image>
    </div>
</template>
<script>
export default {
  data() {
    return {
      img: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2005490500,1717407471&fm=26&gp=0.jpg'
    }
  },
  methods: {
    goBack() {
      // this.$router.push('/home')
      window.history.length > 1 ? this.$router.go(-1) : this.$router.push('/')
    }
  }
}
</script>
<style lang="less" scoped>
.notfound,.el-image{
   width: 100%;
   height: 100%;
}
</style>
